package com.example.flashsales.mappers;


import com.example.flashsales.entity.pojo.OrderDetails;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderDetailsMapper {


//    List<OrderDetails> viewAllDetails(@Param("qDate")Date qDate,@Param("hDate") Date date);

    //根据商品id查看为分拣的订单细节
    List<OrderDetails> viewDetailsByGoodsId(@Param("goodsId") long goodsId, @Param("qDate")Date qDate,@Param("hDate") Date date,@Param("count")Double count);

    //修改订单细节状态
    int updateState(@Param("detailsId") long detailsId, @Param("state") long state);

    //根据细节id获取细节
    OrderDetails viewOrderDetails(@Param("detailsId") long detailsId);
}
